//
//  OrderDetailViewController.m
//  Cheirapsis
//
//  Created by zhouhaie on 15/11/3.
//  Copyright © 2015年 mohe. All rights reserved.
//

#import "OrderDetailViewController.h"
#import "Define.h"
@interface OrderDetailViewController (){
    UIView * ordView;
    UIView * shopView;
    UIView * buyerView;
    
    UIView * oneView;
    UIView * twoView;
    
    
    UILabel * numLabel;
    UILabel * type;
    UILabel * time;
    UILabel * stateOrderLabel; //订单状态
    UILabel * statePayLabel; //支付状态
    UILabel * price;
    UILabel * shopAddress;
    UILabel * phoneShop;
    UILabel * phoneUser;
    
    UILabel * foot;
    
}

@end

@implementation OrderDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"订单详情";
    self.view.backgroundColor = [UIColor whiteColor];
    [self write];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)write{
    
//   //view background
    ordView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, 90)];
    ordView.backgroundColor = [UIColor redColor];
    UIImageView * backImg = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, 90)];
    backImg.image = [UIImage imageNamed:@"笑脸图"];
//
//    shopView = [[UIView alloc]initWithFrame:CGRectMake(0, 320, WIDTH,200)];
//    shopView.backgroundColor = [UIColor whiteColor];
//    
//    buyerView = [[UIView alloc]initWithFrame:CGRectMake(0, 490, WIDTH, 180)];
//    buyerView.backgroundColor = [UIColor whiteColor];
    
    //线条
    oneView = [[UIView alloc]initWithFrame:CGRectMake(0, 290, WIDTH, 12)];
    oneView.backgroundColor = [UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0];

    
    twoView = [[UIView alloc]initWithFrame:CGRectMake(0, 385, WIDTH, 12)];
    twoView.backgroundColor = [UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0];
    
    numLabel =[[UILabel alloc]initWithFrame:CGRectMake(8,110, 70, 16)];
    //numLabel.backgroundColor = [UIColor redColor];
    numLabel.text = @"订单号:";
    numLabel.textColor =[UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
    numLabel.font = [UIFont systemFontOfSize:16];
    
    type=[[UILabel alloc]initWithFrame:CGRectMake(8,140, 70, 16)];
    //type.backgroundColor = [UIColor redColor];
    type.text = @"按摩种类:";
    type.textColor =[UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
    type.font = [UIFont systemFontOfSize:16];
    
    time = [[UILabel alloc]initWithFrame:CGRectMake(8, 170, 70,16)];
    time.text = @"到店时间:";
    time.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
    time.font = [UIFont systemFontOfSize:16];
    
    stateOrderLabel = [[UILabel alloc]initWithFrame:CGRectMake(8, 230, 70,16)];
    stateOrderLabel.text = @"订单状态:";
    stateOrderLabel.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
    stateOrderLabel.font = [UIFont systemFontOfSize:16];
    
    price = [[UILabel alloc]initWithFrame:CGRectMake(8, 260, 70,16)];
    price.text = @"服务价格:";
    price.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
    price.font = [UIFont systemFontOfSize:16];
    
    statePayLabel = [[UILabel alloc]initWithFrame:CGRectMake(175, 260, 70,16)];
    statePayLabel.text = @"支付状态:";
    statePayLabel.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
    statePayLabel.font = [UIFont systemFontOfSize:16];
   
    
    shopAddress = [[UILabel alloc]initWithFrame:CGRectMake(8, 325, 70,16)];
    shopAddress.text = @"商家地址:";
    shopAddress.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
    shopAddress.font = [UIFont systemFontOfSize:16];
    
    
    phoneShop = [[UILabel alloc]initWithFrame:CGRectMake(8, 355, 70,16)];
    phoneShop.text = @"商家电话:";
    phoneShop.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
    phoneShop.font = [UIFont systemFontOfSize:16];
    
   
    phoneUser = [[UILabel alloc]initWithFrame:CGRectMake(8, 200, 70,16)];
    phoneUser.text = @"用户电话:";
    phoneUser.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
    phoneUser.font = [UIFont systemFontOfSize:16];
    
    
//    //右侧控件
//    time = [[UILabel alloc]initWithFrame:CGRectMake(8, 60, 70,17)];
//    time.text = @"到店时间:";
//    time.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
//    time.font = [UIFont systemFontOfSize:16];
//    
    foot=[[UILabel alloc]initWithFrame:CGRectMake(80,140, 70, 16)];
    foot.text = @"足部按摩";
    foot.textColor =[UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
    foot.font = [UIFont systemFontOfSize:15];
//
//    time = [[UILabel alloc]initWithFrame:CGRectMake(8, 60, 70,17)];
//    time.text = @"到店时间:";
//    time.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
//    time.font = [UIFont systemFontOfSize:16];
//    
//    time = [[UILabel alloc]initWithFrame:CGRectMake(8, 60, 70,17)];
//    time.text = @"到店时间:";
//    time.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
//    time.font = [UIFont systemFontOfSize:16];
//    
//    time = [[UILabel alloc]initWithFrame:CGRectMake(8, 60, 70,17)];
//    time.text = @"到店时间:";
//    time.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
//    time.font = [UIFont systemFontOfSize:16];
//    
//    time = [[UILabel alloc]initWithFrame:CGRectMake(8, 60, 70,17)];
//    time.text = @"到店时间:";
//    time.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
//    time.font = [UIFont systemFontOfSize:16];
//    
//    time = [[UILabel alloc]initWithFrame:CGRectMake(8, 60, 70,17)];
//    time.text = @"到店时间:";
//    time.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
//    time.font = [UIFont systemFontOfSize:16];
//    
//    time = [[UILabel alloc]initWithFrame:CGRectMake(8, 60, 70,17)];
//    time.text = @"到店时间:";
//    time.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
//    time.font = [UIFont systemFontOfSize:16];
//    
//    time = [[UILabel alloc]initWithFrame:CGRectMake(8, 60, 70,17)];
//    time.text = @"到店时间:";
//    time.textColor = [UIColor colorWithRed:104/255.0 green:104/255.0 blue:104/255.0 alpha:1.0];
//    time.font = [UIFont systemFontOfSize:16];
    [self.view addSubview:foot];
    [self.view addSubview:stateOrderLabel];
    [self.view addSubview:statePayLabel];
    [self.view addSubview:price];
    [self.view addSubview:shopAddress];
    [self.view addSubview:phoneShop];
    [self.view addSubview:phoneUser];
    [self.view addSubview:time];
    [self.view addSubview:numLabel];
    [self.view addSubview:type];
    [ordView addSubview:backImg];
    [self.view addSubview:ordView];
    [self.view addSubview:shopView];
    [self.view addSubview:buyerView];
    [self.view addSubview:oneView];
    [self.view addSubview:twoView];
}


//- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath







/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
